package com.sky.service;

import com.sky.entity.AddressBook;
import com.sky.result.Result;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @Description TODO
 * @Author dingchunlin
 * @Date 2023/8/20 11:55
 * @Version 1.0.0
 */
public interface AddressBookService {

    List<AddressBook> list();

    AddressBook defaultAddress();

    void saveAddress(AddressBook addressBook);

    AddressBook selectById(Long id);

    void updateAddress(AddressBook addressBook);

    void deleteById(Long id);

    void setDefaultAddress(Long id);
}
